const mongoose = require('mongoose')
const Schema = mongoose.Schema

const StudentType = {
  username: Number, //学号
  major: String,
  classes: Number,
  year: Number
}
const StudentModel = mongoose.model('student', new Schema(StudentType))

module.exports = StudentModel
